package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Schedule;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScheduleMapper {
    int insert(Schedule entity);

    Schedule selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Schedule entity);

    int queryForCount(QueryObject qo);

    List<Schedule> queryForList(QueryObject qo);

    void  changeState(@Param("schId") Long schId, @Param("schStateId") Long schStateId);

}